package com.hyd.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.hyd.common.annotation.Excel;
import com.hyd.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 库存盘点对象 tb_stock_audit
 *
 * @author hwb
 * @date 2025-02-25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class StockAudit extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增 */
    private Long id;

    /** 盘点记录ID，关联盘点记录 */
    @Excel(name = "盘点记录ID，关联盘点记录")
    private Long auditId;

    /** 药品名称 */
    @Excel(name = "药品名称")
    private String medicineName;

    /** 药品编码 */
    @Excel(name = "药品编码")
    private String medicineCode;

    /** 药品批次号 */
    @Excel(name = "药品批次号")
    private String batchNumber;

    /** 盘点数 */
    @Excel(name = "盘点数")
    private Long expectedCount;

    /** 库存 */
    @Excel(name = "库存")
    private Long stockQuantity;

    /** 错误数 */
    @Excel(name = "错误数")
    private Long errorCount;

    /** 盘点日期和时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "盘点日期和时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date auditDate;

    /** 盘点操作员 */
    @Excel(name = "盘点操作员")
    private String operator;

}
